ifneq ($(KERNELRELEASE),)

source := ./source/
obj-m := $(source)ths788.o
else
#KDIR := /usr/src/linux-headers-`uname -r`
ARCH := arm
CROSS_COMPILE := /usr/local/ARM_GNU_Linux/bin/arm-none-linux-gnueabi-
KDIR := /usr/src/linux-2.6.28-omap/
all:
	$(MAKE) -C $(KDIR) M=`pwd` modules
endif
clean:
	rm ./source/ths788.o ./source/ths788.mod.c ./source/ths788.mod.o ./source/ths788.ko Module.symvers modules.order